﻿<UserControl x:Class="Dsl.Ped.Editor.Modules.ProjectiveArea.ProjectiveAreaView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:fpc="clr-namespace:Dsl.Ped.Framework.WPFControls.ProjectiveObject;assembly=DslPedFramework"
             xmlns:projectiveControl="clr-namespace:Dsl.Ped.Controls.ProjectiveControl;assembly=DSLPedControls"
             mc:Ignorable="d"              
             d:DesignHeight="300" d:DesignWidth="300">
    <UserControl.Resources>
        <Style TargetType="{x:Type projectiveControl:ProjectiveControl}">            
            <Style.Triggers>                
                <DataTrigger Binding="{Binding Path=EditorResources.SelectedViewMode}" Value="Common">
                    <Setter Property="projectiveControl:ProjectiveControl.ViewMode" Value="Common" />
                </DataTrigger>
                <DataTrigger Binding="{Binding Path=EditorResources.SelectedViewMode}" Value="Extended">
                    <Setter Property="projectiveControl:ProjectiveControl.ViewMode" Value="Extended"/>
                </DataTrigger>
            </Style.Triggers>
        </Style>
    </UserControl.Resources>
    
        <ScrollViewer VerticalScrollBarVisibility="Visible">
            <fpc:ProjectiveObjectUserControl 
                    ProjectiveObject="{Binding Path=ProjectiveObject}"
                    HorizontalAlignment="Stretch"
                    Grid.Row="1"
                    Name="projectiveObjectUserControl"/>                  
        </ScrollViewer>
</UserControl>
